package com.simple.admin.controller.monitor;

import com.simple.framework.core.controller.BaseController;
import com.simple.framework.core.domain.R;
import com.simple.framework.core.domain.vo.PagingVo;
import com.simple.quartz.domain.dto.ListSysJobLogDto;
import com.simple.quartz.domain.entity.SysJobLog;
import com.simple.quartz.service.SysJobLogService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description 定时任务调度日志表(SysJobLog)表控制器层
 * @Author xiaoke
 * @Date 2024/8/20 20:21
 * @Version 1.0
 */
@RestController
@RequestMapping("/monitor/jobLog")
public class SysJonLogController extends BaseController {

    private final SysJobLogService sysJobLogService;

    public SysJonLogController(SysJobLogService sysJobLogService) {
        this.sysJobLogService = sysJobLogService;
    }

    /**
     * 分页查询定时任务调度日志
     *
     * @param dto 查询实体
     * @return 所有数据
     */
    @GetMapping
    public R<PagingVo<SysJobLog>> list(ListSysJobLogDto dto) {
        return success(sysJobLogService.list(dto));
    }


}
